package B.w.OOday04;

/**主人*/
public class Master {
    void  feed(Animal animal){//喂动物
        animal.eat();
        animal.drink();
    }
    //复用性差、扩展性差、维护性差
    /*void feed(Dog dog){
        dog.eat();
    }
    void feed(Fish fish){
        fish.eat();
    }
    void feed(Chick chick){
        chick.eat();
    }*/
}
